package com.hibernate.test;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ConditionDefine")
public class Condition {
	private int id;
	private String des;

	public Condition() {
		this.id = 0;
		this.des = "";
	}

	public Condition(int id, String des) {
		this.id = id;
		this.des = des;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name="Des")
	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

}
